import * as types from './mutation-type'
import { State } from './state'
import { PlatformFrameState } from 'qiankun-frame'

export default {
  /**
   * 设置版本号
   *
   * @param {State} state
   * @param {string} version
   */
  [types.SET_VERSION](state: State, version: string) {
    state.version = version
  },
  /**
   * 设置frameState
   *
   * @param {State} state
   * @param {PlatformFrameState} frameState
   */
  [types.SET_FRAME_STATE](state: State, frameState: PlatformFrameState) {
    state.frameState = frameState
  },
}
